package com.imc.beans;

import javax.persistence.AttributeOverride;
import javax.persistence.AttributeOverrides;
import javax.persistence.Column;
import javax.persistence.EmbeddedId;
import javax.persistence.Entity;
import javax.persistence.Table;

/**
 * ImcUserOrganList entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "imc_user_organ_list", catalog = "imcdbserver")
public class ImcUserOrganList implements java.io.Serializable {

	// Fields

	private ImcUserOrganListId id;
	private Integer corpId;
	private Integer userSort;

	// Constructors

	/** default constructor */
	public ImcUserOrganList() {
	}

	/** minimal constructor */
	public ImcUserOrganList(ImcUserOrganListId id) {
		this.id = id;
	}

	/** full constructor */
	public ImcUserOrganList(ImcUserOrganListId id, Integer corpId,
			Integer userSort) {
		this.id = id;
		this.corpId = corpId;
		this.userSort = userSort;
	}

	// Property accessors
	@EmbeddedId
	@AttributeOverrides({
			@AttributeOverride(name = "uid", column = @Column(name = "uid", nullable = false)),
			@AttributeOverride(name = "organId", column = @Column(name = "organ_id", nullable = false)) })
	public ImcUserOrganListId getId() {
		return this.id;
	}

	public void setId(ImcUserOrganListId id) {
		this.id = id;
	}

	@Column(name = "corp_id")
	public Integer getCorpId() {
		return this.corpId;
	}

	public void setCorpId(Integer corpId) {
		this.corpId = corpId;
	}

	@Column(name = "user_sort")
	public Integer getUserSort() {
		return this.userSort;
	}

	public void setUserSort(Integer userSort) {
		this.userSort = userSort;
	}

}